//
//  DKHybridWebVC.h
//  Whistle
//
//  Created by ZhangAo on 26/01/2018.
//  Copyright © 2018 BookSir. All rights reserved.
//

#import "DKWebVC.h"

@class DKHybridWebVC;

@interface DKHybridContext : NSObject

@property (nonatomic, weak) DKHybridWebVC *hostVC;
@property (nonatomic, strong) NSMutableDictionary *userInfo;

@end

///////////////////////////////////////////////////////////////

@interface DKHybridWebCommand : NSObject

@property (nonatomic, copy) NSString *command;
@property (nonatomic, strong) id params;

@end

///////////////////////////////////////////////////////////////

@class DKHybridBaseHandler;

@interface DKHybridWebVC : DKWebVC

@property (nonatomic, copy) DKHybridWebCommand *(^parseURL)(NSURL *);
@property (nonatomic, strong, readonly) DKHybridContext *context;

- (void)registerHandler:(DKHybridBaseHandler *)handler;

@end
